﻿//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2023 RuYiAdmin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------

using Elastic.Clients.Elasticsearch;
using RuYiAdmin.Net.DataRepository.BusinessRepository.Interface.Framework;
using RuYiAdmin.Net.UniversalFoundation.Contexts;

namespace RuYiAdmin.Net.DataRepository.BusinessRepository.Implementation.Framework
{
    /// <summary>
    /// 
    /// </summary>
    public class NestRepository : INestRepository
    {
        /// <summary>
        /// 获取ElasticClient实例
        /// </summary>
        /// <returns>ElasticClient</returns>
        public ElasticsearchClient GetElasticClient()
        {
            return RuYiEsNestContext.Instance;
        }
    }
}
